package com.yehun.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping(value = "main")
public class MainController extends BaseController {

    @RequestMapping(value = { "", "index" }, name = "系统首页")
    public String index() {
        return "main/index";
    }

    @RequestMapping(value = "probe", name = "探针")
    public String probe(HttpServletRequest request, Model model) {
        model.addAttribute("request", request);
        model.addAttribute("System", System.class);
        return "main/probe";
    }

}
